import axios from 'axios'

const urlPrev = 'http://localhost:3000/'

export function request(url, method = 'GET', params = {}) {
    return axios({
        url: `${urlPrev}${url}`,
        method: method,
        data: data
    });
}